﻿using FigureDraw.Shapes.FlowchartShape;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FigureDraw.Shapes.ActivityShape
{
    public class OutputActivity : MyShape
    {
        public OutputActivity()
            : base()
        {
            brushColor = new MyColorInfo(255, 255, 255);
        }

        public OutputActivity(MyPoint startPoint, MyPoint endPoint)
            : base(startPoint, endPoint)
        {
            brushColor = new MyColorInfo(255, 255, 255);   
        }

        public override void Draw(Graphic.CommonGraphic graphic)
        {
            MyShape shape = new OutputFlowchart(startPoint, endPoint);
            shape.StrokeColor = strokeColor;
            shape.StrokeWidth = strokeWidth;
            shape.BrushColor = brushColor;

            shape.Draw(graphic);
        }

        public override MyShape Clone(Diagram.BlockDiagram diagram)
        {
            MyShape shape = diagram.DrawOutput(startPoint, endPoint);
            shape.StrokeColor = strokeColor;
            shape.StrokeWidth = strokeWidth;
            shape.BrushColor = brushColor;

            return shape; 
        }

        public override MyShape Clone()
        {
            MyShape shape = new OutputActivity(startPoint, endPoint);
            shape.StrokeColor = strokeColor;
            shape.StrokeWidth = strokeWidth;
            shape.BrushColor = brushColor;

            return shape;
        }
    }
}
